﻿using UnityEngine;
using UnityEngine.Rendering;

public class CustomRenderPipeline : RenderPipeline
{
    CustomRenderPipelineAsset renderPipelineAsset; // using for rendering pipeline assets
    CameraRender rendering = new CameraRender(); // using for rendering loop

    public CustomRenderPipeline(CustomRenderPipelineAsset asset)
    {
        renderPipelineAsset = asset;
        GraphicsSettings.useScriptableRenderPipelineBatching = true;
    }
    protected override void Render(ScriptableRenderContext context, Camera[] cameras)
    {
        foreach (Camera camera in cameras)
        {
            rendering.Render(context, camera);
        }
    }

}